<?php
namespace Admin\Controller;
use Think\Controller;

class ManagerController extends Controller{
    public function login(){
        $this->display();
    }

    public function verifyImg()
    {
        //以下类Verify在之前并没有include引入
        //走自动加载Think.class.php  autoload()
        $config = array(
            'imageH' => 24,               // 验证码图片高度
            'imageW' => 105,
            'fontSize' => 14,
            'fontttf' => '4.ttf',              // 验证码字体，不设置随机获取
            'length' => 4,               // 验证码位数
        );
        $verify = new \Think\Verify($config);
        $verify->entry();
    }
}